
const IndexModel = require('../../models/IndexModel')
Page({
    data:{
        playlists:[],
        banners:[],
        albums:[]
    },
    async onLoad() {
        var cat=await IndexModel.getCat()
        var {playlists}=cat.data
        var banner=await IndexModel.getBanner()
        var {banners}=banner.data
        var album=await IndexModel.newMusic()
        var {albums}=album.data
        this.setData({
            playlists,
            banners,
            albums
        })
    }
})
